3.231 \(\int \frac{x^5 (a+b \log (c x^n))}{(d+e x^2)^3} \, dx\)

Optimal. Leaf size=152 \[ \frac{b n \text{PolyLog}\left (2,-\frac{e x^2}{d}\right )}{4 e^3}-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{4 e^3 \left (d+e x^2\right )^2}-\frac{x^2 \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )}+\frac{\log \left (\frac{e x^2}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{2 e^3}+\frac{b d n}{8 e^3 \left (d+e x^2\right )}+\frac{3 b n \log \left (d+e x^2\right )}{8 e^3}+\frac{b n \log (x)}{4 e^3} \]

[Out]

(b*d*n)/(8*e^3*(d + e*x^2)) + (b*n*Log[x])/(4*e^3) - (d^2*(a + b*Log[c*x^n]))/(4*e^3*(d + e*x^2)^2) - (x^2*(a
+ b*Log[c*x^n]))/(e^2*(d + e*x^2)) + (3*b*n*Log[d + e*x^2])/(8*e^3) + ((a + b*Log[c*x^n])*Log[1 + (e*x^2)/d])/
(2*e^3) + (b*n*PolyLog[2, -((e*x^2)/d)])/(4*e^3)

________________________________________________________________________________________

Rubi [A]  time = 0.286788, antiderivative size = 152, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 9, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.391, Rules used = {266, 43, 2351, 2338, 44, 2335, 260, 2337, 2391} \[ \frac{b n \text{PolyLog}\left (2,-\frac{e x^2}{d}\right )}{4 e^3}-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{4 e^3 \left (d+e x^2\right )^2}-\frac{x^2 \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )}+\frac{\log \left (\frac{e x^2}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{2 e^3}+\frac{b d n}{8 e^3 \left (d+e x^2\right )}+\frac{3 b n \log \left (d+e x^2\right )}{8 e^3}+\frac{b n \log (x)}{4 e^3} \]

Antiderivative was successfully verified.

[In]

Int[(x^5*(a + b*Log[c*x^n]))/(d + e*x^2)^3,x]

[Out]

(b*d*n)/(8*e^3*(d + e*x^2)) + (b*n*Log[x])/(4*e^3) - (d^2*(a + b*Log[c*x^n]))/(4*e^3*(d + e*x^2)^2) - (x^2*(a
+ b*Log[c*x^n]))/(e^2*(d + e*x^2)) + (3*b*n*Log[d + e*x^2])/(8*e^3) + ((a + b*Log[c*x^n])*Log[1 + (e*x^2)/d])/
(2*e^3) + (b*n*PolyLog[2, -((e*x^2)/d)])/(4*e^3)

Rule 266

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2351

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> Wit
h[{u = ExpandIntegrand[a + b*Log[c*x^n], (f*x)^m*(d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c,
d, e, f, m, n, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IntegerQ[m] && IntegerQ[r]))

Rule 2338

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_))^(q_.), x_Symbol] :
> Simp[(f^m*(d + e*x^r)^(q + 1)*(a + b*Log[c*x^n])^p)/(e*r*(q + 1)), x] - Dist[(b*f^m*n*p)/(e*r*(q + 1)), Int[
((d + e*x^r)^(q + 1)*(a + b*Log[c*x^n])^(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, f, m, n, q, r}, x] && EqQ[
m, r - 1] && IGtQ[p, 0] && (IntegerQ[m] || GtQ[f, 0]) && NeQ[r, n] && NeQ[q, -1]

Rule 44

Int[((a_) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*
x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && L
tQ[m + n + 2, 0])

Rule 2335

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_), x_Symbol] :> Simp
[((f*x)^(m + 1)*(d + e*x^r)^(q + 1)*(a + b*Log[c*x^n]))/(d*f*(m + 1)), x] - Dist[(b*n)/(d*(m + 1)), Int[(f*x)^
m*(d + e*x^r)^(q + 1), x], x] /; FreeQ[{a, b, c, d, e, f, m, n, q, r}, x] && EqQ[m + r*(q + 1) + 1, 0] && NeQ[
m, -1]

Rule 260

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rule 2337

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.))/((d_) + (e_.)*(x_)^(r_)), x_Symbol] :> Si
mp[(f^m*Log[1 + (e*x^r)/d]*(a + b*Log[c*x^n])^p)/(e*r), x] - Dist[(b*f^m*n*p)/(e*r), Int[(Log[1 + (e*x^r)/d]*(
a + b*Log[c*x^n])^(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, f, m, n, r}, x] && EqQ[m, r - 1] && IGtQ[p, 0] &
& (IntegerQ[m] || GtQ[f, 0]) && NeQ[r, n]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rubi steps

\begin{align*} \int \frac{x^5 \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx &=\int \left (\frac{d^2 x \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )^3}-\frac{2 d x \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )^2}+\frac{x \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )}\right ) \, dx\\ &=\frac{\int \frac{x \left (a+b \log \left (c x^n\right )\right )}{d+e x^2} \, dx}{e^2}-\frac{(2 d) \int \frac{x \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^2} \, dx}{e^2}+\frac{d^2 \int \frac{x \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx}{e^2}\\ &=-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{4 e^3 \left (d+e x^2\right )^2}-\frac{x^2 \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )}+\frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x^2}{d}\right )}{2 e^3}-\frac{(b n) \int \frac{\log \left (1+\frac{e x^2}{d}\right )}{x} \, dx}{2 e^3}+\frac{\left (b d^2 n\right ) \int \frac{1}{x \left (d+e x^2\right )^2} \, dx}{4 e^3}+\frac{(b n) \int \frac{x}{d+e x^2} \, dx}{e^2}\\ &=-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{4 e^3 \left (d+e x^2\right )^2}-\frac{x^2 \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )}+\frac{b n \log \left (d+e x^2\right )}{2 e^3}+\frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x^2}{d}\right )}{2 e^3}+\frac{b n \text{Li}_2\left (-\frac{e x^2}{d}\right )}{4 e^3}+\frac{\left (b d^2 n\right ) \operatorname{Subst}\left (\int \frac{1}{x (d+e x)^2} \, dx,x,x^2\right )}{8 e^3}\\ &=-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{4 e^3 \left (d+e x^2\right )^2}-\frac{x^2 \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )}+\frac{b n \log \left (d+e x^2\right )}{2 e^3}+\frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x^2}{d}\right )}{2 e^3}+\frac{b n \text{Li}_2\left (-\frac{e x^2}{d}\right )}{4 e^3}+\frac{\left (b d^2 n\right ) \operatorname{Subst}\left (\int \left (\frac{1}{d^2 x}-\frac{e}{d (d+e x)^2}-\frac{e}{d^2 (d+e x)}\right ) \, dx,x,x^2\right )}{8 e^3}\\ &=\frac{b d n}{8 e^3 \left (d+e x^2\right )}+\frac{b n \log (x)}{4 e^3}-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{4 e^3 \left (d+e x^2\right )^2}-\frac{x^2 \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (d+e x^2\right )}+\frac{3 b n \log \left (d+e x^2\right )}{8 e^3}+\frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x^2}{d}\right )}{2 e^3}+\frac{b n \text{Li}_2\left (-\frac{e x^2}{d}\right )}{4 e^3}\\ \end{align*}

Mathematica [C]  time = 0.527301, size = 498, normalized size = 3.28 \[ \frac{b n \left (4 \left (d+e x^2\right )^2 \text{PolyLog}\left (2,-\frac{i \sqrt{e} x}{\sqrt{d}}\right )+4 \left (d+e x^2\right )^2 \text{PolyLog}\left (2,\frac{i \sqrt{e} x}{\sqrt{d}}\right )+3 d^2 \log \left (-\sqrt{e} x+i \sqrt{d}\right )+3 d^2 \log \left (\sqrt{e} x+i \sqrt{d}\right )+4 d^2 \log (x) \log \left (1-\frac{i \sqrt{e} x}{\sqrt{d}}\right )+4 d^2 \log (x) \log \left (1+\frac{i \sqrt{e} x}{\sqrt{d}}\right )+d^2+3 e^2 x^4 \log \left (-\sqrt{e} x+i \sqrt{d}\right )+3 e^2 x^4 \log \left (\sqrt{e} x+i \sqrt{d}\right )+4 e^2 x^4 \log (x) \log \left (1-\frac{i \sqrt{e} x}{\sqrt{d}}\right )+4 e^2 x^4 \log (x) \log \left (1+\frac{i \sqrt{e} x}{\sqrt{d}}\right )+d e x^2-4 d e x^2 \log (x)+6 d e x^2 \log \left (-\sqrt{e} x+i \sqrt{d}\right )+6 d e x^2 \log \left (\sqrt{e} x+i \sqrt{d}\right )+8 d e x^2 \log (x) \log \left (1-\frac{i \sqrt{e} x}{\sqrt{d}}\right )+8 d e x^2 \log (x) \log \left (1+\frac{i \sqrt{e} x}{\sqrt{d}}\right )-6 e^2 x^4 \log (x)\right )-2 d^2 \left (a+b \log \left (c x^n\right )-b n \log (x)\right )+8 d \left (d+e x^2\right ) \left (a+b \log \left (c x^n\right )-b n \log (x)\right )+4 \left (d+e x^2\right )^2 \log \left (d+e x^2\right ) \left (a+b \log \left (c x^n\right )-b n \log (x)\right )}{8 e^3 \left (d+e x^2\right )^2} \]

Antiderivative was successfully verified.

[In]

Integrate[(x^5*(a + b*Log[c*x^n]))/(d + e*x^2)^3,x]

[Out]

(-2*d^2*(a - b*n*Log[x] + b*Log[c*x^n]) + 8*d*(d + e*x^2)*(a - b*n*Log[x] + b*Log[c*x^n]) + 4*(d + e*x^2)^2*(a
 - b*n*Log[x] + b*Log[c*x^n])*Log[d + e*x^2] + b*n*(d^2 + d*e*x^2 - 4*d*e*x^2*Log[x] - 6*e^2*x^4*Log[x] + 3*d^
2*Log[I*Sqrt[d] - Sqrt[e]*x] + 6*d*e*x^2*Log[I*Sqrt[d] - Sqrt[e]*x] + 3*e^2*x^4*Log[I*Sqrt[d] - Sqrt[e]*x] + 3
*d^2*Log[I*Sqrt[d] + Sqrt[e]*x] + 6*d*e*x^2*Log[I*Sqrt[d] + Sqrt[e]*x] + 3*e^2*x^4*Log[I*Sqrt[d] + Sqrt[e]*x]
+ 4*d^2*Log[x]*Log[1 - (I*Sqrt[e]*x)/Sqrt[d]] + 8*d*e*x^2*Log[x]*Log[1 - (I*Sqrt[e]*x)/Sqrt[d]] + 4*e^2*x^4*Lo
g[x]*Log[1 - (I*Sqrt[e]*x)/Sqrt[d]] + 4*d^2*Log[x]*Log[1 + (I*Sqrt[e]*x)/Sqrt[d]] + 8*d*e*x^2*Log[x]*Log[1 + (
I*Sqrt[e]*x)/Sqrt[d]] + 4*e^2*x^4*Log[x]*Log[1 + (I*Sqrt[e]*x)/Sqrt[d]] + 4*(d + e*x^2)^2*PolyLog[2, ((-I)*Sqr
t[e]*x)/Sqrt[d]] + 4*(d + e*x^2)^2*PolyLog[2, (I*Sqrt[e]*x)/Sqrt[d]]))/(8*e^3*(d + e*x^2)^2)

________________________________________________________________________________________

Maple [C]  time = 0.159, size = 727, normalized size = 4.8 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^5*(a+b*ln(c*x^n))/(e*x^2+d)^3,x)

[Out]

1/2*I*b*Pi*csgn(I*x^n)*csgn(I*c*x^n)^2*d/e^3/(e*x^2+d)-1/4*I*b*Pi*csgn(I*x^n)*csgn(I*c*x^n)*csgn(I*c)/e^3*ln(e
*x^2+d)+1/2*b*n/e^3*ln(x)*ln((-e*x+(-d*e)^(1/2))/(-d*e)^(1/2))+1/2*b*n/e^3*ln(x)*ln((e*x+(-d*e)^(1/2))/(-d*e)^
(1/2))-1/2*b*n/e^3*ln(x)*ln(e*x^2+d)-1/4*b*ln(c)*d^2/e^3/(e*x^2+d)^2+b*ln(c)*d/e^3/(e*x^2+d)-1/4*I*b*Pi*csgn(I
*c*x^n)^3/e^3*ln(e*x^2+d)-1/8*I*b*Pi*csgn(I*x^n)*csgn(I*c*x^n)^2*d^2/e^3/(e*x^2+d)^2+1/2*I*b*Pi*csgn(I*c*x^n)^
2*csgn(I*c)*d/e^3/(e*x^2+d)-1/8*I*b*Pi*csgn(I*c*x^n)^2*csgn(I*c)*d^2/e^3/(e*x^2+d)^2+b*ln(x^n)*d/e^3/(e*x^2+d)
-1/2*I*b*Pi*csgn(I*c*x^n)^3*d/e^3/(e*x^2+d)-1/2*I*b*Pi*csgn(I*x^n)*csgn(I*c*x^n)*csgn(I*c)*d/e^3/(e*x^2+d)+1/8
*I*b*Pi*csgn(I*c*x^n)^3*d^2/e^3/(e*x^2+d)^2+1/2*b*n/e^3*dilog((-e*x+(-d*e)^(1/2))/(-d*e)^(1/2))+1/2*b*n/e^3*di
log((e*x+(-d*e)^(1/2))/(-d*e)^(1/2))-1/4*b*ln(x^n)*d^2/e^3/(e*x^2+d)^2+1/8*I*b*Pi*csgn(I*x^n)*csgn(I*c*x^n)*cs
gn(I*c)*d^2/e^3/(e*x^2+d)^2+1/2*b*ln(x^n)/e^3*ln(e*x^2+d)+1/2*a/e^3*ln(e*x^2+d)-1/4*a*d^2/e^3/(e*x^2+d)^2+a*d/
e^3/(e*x^2+d)+1/2*b*ln(c)/e^3*ln(e*x^2+d)+1/4*I*b*Pi*csgn(I*c*x^n)^2*csgn(I*c)/e^3*ln(e*x^2+d)+1/4*I*b*Pi*csgn
(I*x^n)*csgn(I*c*x^n)^2/e^3*ln(e*x^2+d)-3/4*b*n*ln(x)/e^3+3/8*b*n*ln(e*x^2+d)/e^3+1/8*b*d*n/e^3/(e*x^2+d)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \frac{1}{4} \, a{\left (\frac{4 \, d e x^{2} + 3 \, d^{2}}{e^{5} x^{4} + 2 \, d e^{4} x^{2} + d^{2} e^{3}} + \frac{2 \, \log \left (e x^{2} + d\right )}{e^{3}}\right )} + b \int \frac{x^{5} \log \left (c\right ) + x^{5} \log \left (x^{n}\right )}{e^{3} x^{6} + 3 \, d e^{2} x^{4} + 3 \, d^{2} e x^{2} + d^{3}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^5*(a+b*log(c*x^n))/(e*x^2+d)^3,x, algorithm="maxima")

[Out]

1/4*a*((4*d*e*x^2 + 3*d^2)/(e^5*x^4 + 2*d*e^4*x^2 + d^2*e^3) + 2*log(e*x^2 + d)/e^3) + b*integrate((x^5*log(c)
 + x^5*log(x^n))/(e^3*x^6 + 3*d*e^2*x^4 + 3*d^2*e*x^2 + d^3), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b x^{5} \log \left (c x^{n}\right ) + a x^{5}}{e^{3} x^{6} + 3 \, d e^{2} x^{4} + 3 \, d^{2} e x^{2} + d^{3}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^5*(a+b*log(c*x^n))/(e*x^2+d)^3,x, algorithm="fricas")

[Out]

integral((b*x^5*log(c*x^n) + a*x^5)/(e^3*x^6 + 3*d*e^2*x^4 + 3*d^2*e*x^2 + d^3), x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**5*(a+b*ln(c*x**n))/(e*x**2+d)**3,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left (c x^{n}\right ) + a\right )} x^{5}}{{\left (e x^{2} + d\right )}^{3}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^5*(a+b*log(c*x^n))/(e*x^2+d)^3,x, algorithm="giac")

[Out]

integrate((b*log(c*x^n) + a)*x^5/(e*x^2 + d)^3, x)